import request from '@/utils/request'

// 查询OA账号管理列表
export function listOaAccountManagement(query) {
  return request({
    url: '/accountManagement/oaAccountManagement/list',
    method: 'get',
    params: query
  })
}

// 查询OA账号管理详细
export function getOaAccountManagement(id) {
  return request({
    url: '/accountManagement/oaAccountManagement/' + id,
    method: 'get'
  })
}

// 保存OA账号管理
export function saveOaAccountManagement(data) {
  return request({
    url: '/accountManagement/oaAccountManagement/save',
    method: 'post',
    data: data
  })
}

// 删除OA账号管理
export function delOaAccountManagement(id) {
  return request({
    url: '/accountManagement/oaAccountManagement/' + id,
    method: 'delete'
  })
}

// 导出OA账号管理
export function exportOaAccountManagement(query) {
  return request({
    url: '/accountManagement/oaAccountManagement/export',
    method: 'get',
    params: query
  })
}
